rm tx_recognition rpc test_android cnn_function.o  test_android.o  tx_recognition.o  util.o

export DISPLAY=:0.0
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/mkl/lib/intel64:/opt/intel/lib/intel64:/home/nvidia/.bin/git/cnn/obj/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/nvidia/.bin/git/cnn/obj/:/opt/ego/opencv/lib/
export PKG_CONFIG_PATH=/opt/ego/opencv/lib/pkgconfig/

g++ -I./ -Wall -Wno-unknown-pragmas -Wfatal-errors -Wunused-but-set-variable -Wno-unused-result -Ofast -std=c++11  -c util.cpp -o util.o
g++ -I/usr/include/freetype2 -I/usr/include/harfbuzz -I./ -Wall -Wno-unknown-pragmas -Wfatal-errors -Wunused-but-set-variable -Wno-unused-result -Ofast -std=c++11  -c freetype.cpp -o freetype.o `pkg-config --cflags --libs opencv`
g++ -I/opt/ego/opencv/include/ -I./ -Wall -Wno-unknown-pragmas -Wfatal-errors -Wunused-but-set-variable -Wno-unused-result -Ofast -std=c++11  -c cnn_function.cpp -o cnn_function.o
g++ -I/opt/ego/opencv/include/ -I./ -Wall -Wno-unknown-pragmas -Wfatal-errors -Wunused-but-set-variable -Wno-unused-result -Ofast -std=c++11 -I/usr/include/mysql/ -I/home/nvidia/.bin/git/rpclib/include/ -lmysqlclient -L/home/nvidia/.bin/git/rpclib/build -lrpc -lpthread  -c tx_recognition.cpp -o tx_recognition.o

g++ -I/usr/include/mysql/ -I/home/nvidia/.bin/git/rpclib/include/ -L/home/nvidia/.bin/git/rpclib/build -lrpc -lpthread -I./ -Wall -Wno-unknown-pragmas -Wfatal-errors -Wunused-but-set-variable -Wno-unused-result -Ofast -std=c++11 util.o cnn_function.o tx_recognition.o freetype.o -o tx_recognition `pkg-config --cflags --libs opencv`          -L/home/nvidia/.bin/git/cnn/obj/ -lcnn -lrpc -lpthread -lfreetype -lharfbuzz

#./tx_recognition
